package cc.dd.marketing.activity.handler;


import cc.dd.marketing.api.constant.ActivityTypeEnum;
import cc.dd.marketing.api.constant.FunctionCodeEnum;
import cc.dd.marketing.core.AbstractBusinessHandler;
import cc.dd.marketing.core.annotation.ActivityTypeMapper;
import cc.dd.marketing.core.annotation.FunctionMapper;
import cc.dd.marketing.common.ContextParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 拉人活动
 *
 * @author dongsufeng
 * @date 2022/9/9 11:57 AM
 */
@Component
@ActivityTypeMapper({ActivityTypeEnum.P_PULL_P})
@FunctionMapper({FunctionCodeEnum.PARTICIPATE})
@Slf4j
public class PullPActivityHandler extends AbstractBusinessHandler {


    @Override
    protected void beforeDoAction(ContextParam contextParam) {
        log.info("活动前置校验");
    }

    @Override
    public void doAction(ContextParam contextParam) {
        log.info("新增活动流水表");
        log.info("修改邀请人信息");
        log.info("其它操作");
    }
}
